﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class test : System.Web.UI.Page
{
    protected string qrystr = "";
    protected bool rqst(string QueryString)
    {
        bool ok;
        qrystr = Request.QueryString[QueryString];
        ok = string.IsNullOrEmpty(qrystr);
        return ok;
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (rqst("CityID"))
        {
            // ~/*.aspx
        }
        else
        {
            // ~/*.aspx?CityID=X
            this.pnl_cty.Visible = false;
            this.pnl_twn.Visible = true;
            if(rqst("TownID"))
            {
                // ~/*.aspx?CityID=X
            }
            else
	        {
                // ~/*.aspx?CityID=X&TownID=Y
                this.pnl_twn.Visible = false;
                this.pnl_flt.Visible = true;
                if (rqst("Fleet"))
                {
                    // ~/*.aspx?CityID=X&TownID=Y
                }
                else
                {
                    // ~/*.aspx?CityID=X&TownID=Y&Fleet=Z
                    this.pnl_flt.Visible = false;
                    this.pnl_dtl.Visible = true;
                }
            }
            
        }
    }
}